/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 pathfinding_subject.cpp

	$Header: /heroes4/pathfinding_subject.h $

 ************************************************************************/

// kill the 255+ character identifier warning.  Templates tend to exceed that easily.
#include "precompiled.h"
#pragma warning( disable: 4786 )

#include "pathfinding_subject.h"

#include "adventure_map.h"
#include "caravan.h"

t_pathfinding_subject::t_pathfinding_subject( t_adventure_map * map, int owner, int daily_movement)
	: m_daily_movement( daily_movement ),
	  m_map( map ),
	  m_owner( owner )
{
}

t_adventure_map* t_pathfinding_subject::get_map() const
{
	return m_map;
}

int t_pathfinding_subject::get_movement( bool sea_move ) const
{
	return m_daily_movement;
}

int t_pathfinding_subject::get_max_movement( bool sea_move ) const
{
	return m_daily_movement;
}

int	t_pathfinding_subject::get_owner_number() const
{
	return m_owner;
}

t_adv_map_point	t_pathfinding_subject::get_position() const
{
	return m_location;
}

bool t_pathfinding_subject::get_virtual_position(t_adv_map_point& position) const
{
	position = m_location;
	return true;
}

void t_pathfinding_subject::set_position( t_adv_map_point const & location )
{
	m_location = location;
}

